/* static/css/style.css */

/* 基础样式 */
body {
    /* 科技感渐变背景 */
    background: linear-gradient(135deg,
        #0f2027 0%,  /* 深科技蓝 */
        #203a43 50%,  /* 中灰蓝 */
        #2c5364 100% /* 深灰蓝 */
    );
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', system-ui, sans-serif;
    position: relative;
    overflow: hidden;
}

/* 添加科技感网格背景效果 */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    opacity: 0.5;
}

/* 添加动态科技光效（可选） */
body::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(100, 200, 255, 0.1) 0%,
        transparent 70%
    );
    animation: pulse 15s infinite alternate;
    z-index: -2;
}

@keyframes pulse {
    0% {
        transform: translate(10%, 10%);
    }
    100% {
        transform: translate(-10%, -10%);
    }
}

/* 超大玻璃卡片效果 */
.login-container {
    width: 100%;
    max-width: 900px; /* 增大登录框宽度 */
    margin: 0 auto;
}

.card {
    border: none;
    border-radius: 20px; /* 增大圆角 */
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18); /* 稍高透明度 */
    backdrop-filter: blur(12px); /* 更强的模糊效果 */
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.45);
    transition: all 0.4s ease;
    height: auto;
    min-height: 500px; /* 设置最小高度 */
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px); /* 更强的悬浮效果 */
    box-shadow: 0 16px 50px rgba(31, 38, 135, 0.6);
}

.card-body {
    padding: 4rem; /* 更大的内边距 */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 内容垂直居中 */
}

/* 标题样式 */
.login-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 表单元素样式 */
.form-control {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: white;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 1.1rem;
    transition: all 0.3s;
    margin-bottom: 1.5rem;
    height: auto;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.3rem rgba(255, 255, 255, 0.15);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* 按钮样式 */
.btn-login {
    background: linear-gradient(to right, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: white;
    transition: all 0.3s;
    margin-top: 1rem;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to right, #5a6fd1, #6a4299);
}

/* 链接样式 */
.login-links {
    text-align: center;
    margin-top: 2rem;
}

.login-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    margin: 0 10px;
    transition: all 0.3s;
    font-weight: 500;
}

.login-links a:hover {
    color: white;
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .login-container {
        max-width: 800px;
    }
    .card-body {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        max-width: 650px;
    }
    .card-body {
        padding: 2.5rem;
    }
    .login-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .login-container {
        max-width: 100%;
        padding: 20px;
    }
    .card {
        border-radius: 15px;
        min-height: auto;
    }
    .card-body {
        padding: 2rem;
    }
    .login-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    .form-control {
        padding: 12px 15px;
    }
}